import { createRouter, createWebHistory } from 'vue-router';
import ChatView from '../views/chat/ChatView.vue';
import StockListView from '../views/stock/StockListView.vue';
import StockFormView from '../views/stock/StockFormView.vue';
import StockAnalysisView from '../views/stock/StockAnalysisView.vue';
import HomeView from '../views/home/HomeView.vue';
import StockImportView from '../views/stock/StockImportView.vue';
import DocumentConversionTool from '../views/document/DocumentConversionTool.vue';

const routes = [
  {
    path: '/document-conversion',
    name: 'documentConversion',
    component: DocumentConversionTool
  },
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/chat',
    name: 'chat',
    component: ChatView
  },
  {
    path: '/stocks',
    name: 'stockList',
    component: StockListView
  },
  {
    path: '/stocks/new',
    name: 'stockNew',
    component: StockFormView
  },
  {
    path: '/stocks/:id/edit',
    name: 'stockEdit',
    component: StockFormView,
    props: true
  },
  {
    path: '/stocks/analysis',
    name: 'stockAnalysis',
    component: StockAnalysisView
  },
  {
    path: '/stocks/import',
    name: 'stockImport',
    component: StockImportView
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;